nativeCheckPermission

Checks the system's microphone permission status on Windows.

This function is exported for JNI consumption. It attempts a "query" open of a waveform audio input device. If this fails, we infer that permission is denied.

Return

Int representing the status:

  • 1: Denied (or no driver/device, which is indistinguishable)

  • 2: Granted